﻿<?xml version="1.0" encoding="utf-8" ?>
<hibernate-mapping xmlns="urn:nhibernate-mapping-2.2" namespace="NLBS.Entity" assembly="NLBS.Entity">
  <class name="UserGroup" table="blog_UserGroup">
    <id name="GroupID" column="group_id" type="Int32">
      <generator class="native" />
    </id>
    <property name="Name" column="group_name" type="String" />
    <property name="Rights" column="group_rights" type="String" />

    <bag name="Users">
      <key column="user_groupID" />
      <one-to-many class="User"/>
    </bag>
  </class>
</hibernate-mapping>